using System;
namespace MonsterNetWindows
{
	public partial class MNTextEntryDialog : Gtk.Dialog
	{
		string _text = string.Empty;
		string _description = string.Empty;
		
		public string Text {
			get {
				return this._text;
			}
		}

		public string Description {
			get {
				return this._description;
			}
		}

		protected virtual void OnResponse (object o, Gtk.ResponseArgs args)
		{
			if (args.ResponseId == Gtk.ResponseType.Ok) {
				_text = entryText.Text;
			}			
		}
		
		
		public MNTextEntryDialog (string title, string description, string text)
		{
			this.Build ();
			labelDescription.Text = description;
			entryText.Text = text;
		}
	}
}

